import threading
class robot(threading.Thread):
    def __init__(self, connection, proto):
        threading.Thread.__init__(self)
        self.connection	= connection
        self.proto	= proto

    def run(self):
        self.connection.connect()
        self.proto.start()


